<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登录界面!</title>
<script	type="text/javascript">
	function validate(){
		if (document.form.username.value == ""){
			alert("用户ID不能为空!");
			document.form.username.focus();
			return false;
		}
		if (document.form.password.value == ""){
			alert("密码不能为空!");
			document.form.password.focus();
			return false ;
		}
		return true;
	}
</script>
</head>
<body>
<form action="checklogin.jsp" method="post">
用户名:<input type="text" name="username"><br>
密码:<input type="password" name="password"><br>
<input type="submit" value="登录">
<input type="reset" value="重置">
<input type="button" value="注册" onclick="window.location='register.jsp'"/><br>
</form> 
</body>
</html>